#ifndef INC_LOG_H
#define INC_LOG_H

struct buf;
struct superblock;

void initlog(int dev, struct superblock *sup);
void log_write(struct buf *);
void begin_op();
void end_op();

void log_test();

#define WRITE_BUF(b) { \
    b->flags |= B_DIRTY; \
    log_write(b); \
}

#endif
